/**
 * Created by kangdaye on 16/6/5.
 */

//Main
app.controller('indexCtr',["$scope","$rootScope","indexService", function($scope,$rootScope,indexService) {
    $scope.indexData = {};

    indexService.statistics(function(data){
        data.data.statistics.order_report.count = [data.data.statistics.order_report.count];
        data.data.statistics.member_report.count = [data.data.statistics.member_report.count];
        $scope.indexData = data.data;

    });
    
}]);
